package com.lin.cloud.disk.entity.pojo;


import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * (Department)实体类
 *
 * @author ljc
 * @since 2020-12-10 16:45:57
 */
@Data
public class Department {
    private static final long serialVersionUID = 855054072689157633L;

    @ApiModelProperty(value = "部门id", name = "id")
    private Long id;

    @ApiModelProperty(value = "部门名称", name = "departmentName")
    @NotBlank(message = "部门名称不能为空")
    private String departmentName;

    @ApiModelProperty(value = "部门描述", name = "departmentDesc")
    private String departmentDesc;

    /**
     * 父部门ID 与权限无关 id==parent_id为一级部门
     */
    @ApiModelProperty(value = "父部门id", name = "parentId")
    private Long parentId;


    @ApiModelProperty(value = "删除 0:未删除 1:删除", name = "isDelete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "修改时间", name = "updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "创建人", name = "createBy")
    private String createBy;

    @ApiModelProperty(value = "修改人", name = "updateBy")
    private String updateBy;


}